package com.kfm.dao;

import com.kfm.model.UserInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserInfoDao {

    // @Select("select * from userinfo")
    public List<UserInfo> selectAll();

    // @Insert("insert into userinfo() values()")
    public int insert(UserInfo userInfo);

    List<UserInfo> selectByName(String name);

    List<UserInfo> selectByUsernameAndPassword(String username, String password);

    int selectTotal();

    List<UserInfo> selectByUser(UserInfo userInfo);

    int deleteByIds(String... ids);

    int updateByUser(UserInfo userInfo);

    List<UserInfo> selectByUser2(UserInfo userInfo);

}
